<?php

namespace Biz\model\springHomeDecActivity;

use Biz\pockets\modelTrait\BizModelTrait;
use Doraemon\pockets\datebase\BaseDbModel;

class WishList extends BaseDbModel
{
    const _CONFIG_FILE_ = 'db_store';
    
    const _CONFIG_SELECT_ = 'db_brand_activity';
    
    const _DATABASE_ = 'brand_activity';
    
    const _TABLE_NAME = 'spring_home_dec_wish_list';

    const WINNING_YES = 1; //中奖
    const WINNING_NO = 0; //未中奖

    //删除字段名称
    protected static $deleteField = 'data_status';
    
    
    use BizModelTrait;


    public static function increaseWinning($uid, $product_id)
    {
        return self::dataUpdate(['winning' => 1, 'update_time' => date("Y-m-d H:i:s")], ['uid' => $uid, 'product_id' => $product_id], true);
    }
}
